<!--#begin addFormation -->
<form name="addformation" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user">
    <input type="hidden" name="idx" value="formation">

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ formationLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <input type="text" name="formationName" size="30" maxlength="60" />
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ levelLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="levelID">
                                <option value="">---</option>
                                <!--#in nextLevel -->
                                <option value="{ level[id] }">{ level[name] }</option>
                                <!--#endin nextLevel -->
                            </select>
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ coordinatorLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="coordinatorID">
                                <option value="">---</option>
                                <!--#in nextStaff -->
                                <option value="{ staff[id] }">{ staff[name] }</option>
                                <!--#endin nextStaff -->
                            </select>
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ departementLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="departementID">
                                <option value="">---</option>
                                <!--#in nextDepartement -->
                                <option value="{ departement[id] }">{ departement[name] }</option>
                                <!--#endin nextDepartement -->
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="addFormationSubmit" value="{ addFormationButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end addFormation -->


<!--#begin editFormation -->
<form name="editformation" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user">
    <input type="hidden" name="idx" value="formation">
    <input type="hidden" name="fid" value="{ formation[id] }" />

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ formationLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <input type="text" name="formationName" value="{ formation[name] }"size="30" maxlength="60" />
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ levelLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="levelID">
                                <option value="">---</option>
                                <!--#in nextLevel -->
                                <option value="{ level[id] }">{ level[name] }</option>
                                <!--#endin nextLevel -->
                            </select>
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ coordinatorLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="coordinatorID">
                                <option value="">---</option>
                                <!--#in nextStaff -->
                                <option value="{ staff[id] }">{ staff[name] }</option>
                                <!--#endin nextStaff -->
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="editFormationSubmit" value="{ editFormationButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end editFormation -->

<!--#begin addMaterial -->
<form name="addTeachingUnit" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user" />
    <input type="hidden" name="idx" value="formation" />
    <input type="hidden" name="fid" value="{ idFormation }" />

    <table width="60%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ teachingUnitLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="teachingUnitID">
                                <option value="">---</option>
                                <!--#in nextSemester -->
                                <optgroup label="{ semester[semester_name] }">
                                <!--#in nextTeachingUnit -->
                                <option value="{ teachingUnit[id] }">{ teachingUnit[teachingUnit_name] }</option>
                                <!--#endin nextTeachingUnit -->
                                </optgroup>
                                <!--#endin nextSemester -->
                            </select>
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ materialNameLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="materialName" size="30" maxlength="60"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ codeLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="code" size="30" maxlength="60"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ coefficientLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="number" name="coefficient"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ teachingUnitLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="professorID">
                                <option value="">---</option>                               
                                <!--#in nextStaff -->
                                <option value="{ staff[id] }">{ staff[name] }</option>
                                <!--#endin nextStaff -->
                            </select>
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ nbHoursLLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="number" name="nbHoursL" value="0"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ nbHoursTLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="number" name="nbHoursT" value="0"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ nbHoursTLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="number" name="nbHoursWP" value="0"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="addMaterialSubmit" value="{ addMaterialButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end addMaterial -->

<!--#begin addTeachingUnit -->
<form name="addTeachingUnit" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user" />
    <input type="hidden" name="idx" value="formation" />
    <input type="hidden" name="fid" value="{ idFormation }" />

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ semesterLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="semesterID">
                                <option value="">---</option>
                                <!--#in nextSemester -->
                                <option value="{ semester[id] }">{ semester[semester_name] }</option>
                                <!--#endin nextSemester -->
                            </select>
                        </td>
                    </tr>
                    <tr> 
                        <td align="right">{ teachingUnitNameLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="teachingUnitName" size="30" maxlength="60"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ codeLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="code" size="30" maxlength="60"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ coefficientLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="number" name="coefficient"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="addTeachingUnitSubmit" value="{ addTeachingUnitButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end addTeachingUnit -->


<!--#begin addTutorialGroup -->
<form name="addformation" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user" />
    <input type="hidden" name="idx" value="formation" />
    <input type="hidden" name="fid" value="{ idFormation }" />

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ groupNameLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="groupName" size="30" maxlength="60"></td>
                    </tr>
                    
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="addTutorialGroupSubmit" value="{ addTutorialGroupButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end addTutorialGroup -->

<!--#begin editTutorialGroup -->
<form name="editTutorialGroup" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user" />
    <input type="hidden" name="idx" value="formation" />
    <input type="hidden" name="fid" value="{ idFormation }" />
    <input type="hidden" name="idTutorialGroup" value="{ tutorialGroup[id] }" />

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ groupNameLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="groupName" value="{ tutorialGroup[name] }"size="30" maxlength="60"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="editTutorialGroupSubmit" value="{ editTutorialGroupButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end editTutorialGroup -->

<!--#begin addWorkPraticeGroup -->
<form name="addformation" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user" />
    <input type="hidden" name="idx" value="formation" />
    <input type="hidden" name="fid" value="{ idFormation }" />

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ groupNameLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="groupName" size="30" maxlength="60"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ tutorialGroupLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="tutorialGroupID">
                                <option value="">---</option>
                                
                                <!--#in nextTutorialGroup -->
                                <option value="{ tutorialGroup[id] }">{ tutorialGroup[tutorialGroup_name] }</option>
                                <!--#endin nextTutorialGroup -->
                                
                            </select>
                        </td>
                    </tr>
                                        
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="addWorkPraticeGroupSubmit" value="{ addWorkPraticeGroupButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end addWorkPraticeGroup -->

<!--#begin editWorkPraticeGroup -->
<form name="editWorkPraticeGroup" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user" />
    <input type="hidden" name="idx" value="formation" />
    <input type="hidden" name="fid" value="{ idFormation }" />
    <input type="hidden" name="idWorkPraticeGroup" value="{ workPraticeGroup[id] }" />

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ groupNameLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="groupName" value="{ workPraticeGroup[name] }"size="30" maxlength="60"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="editWorkPraticeGroupSubmit" value="{ editWorkPraticeGroupButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end editWorkPraticeGroup -->

<!--#begin listFormation -->
<table align="center" border="0" cellpadding="2" cellspacing="0" width="95%">
    <tbody>
        <tr> 
            <td align="center" valign="middle"> 
                <table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
                    <tbody>
                        <tr>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="22%">{ departementLabel }</td>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="22%">{ levelLabel }</td>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="22%">{ formationLabel }</td>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="22%">{ coordinatorLabel }</td>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="6%"></td>
                            <?php 
                            }
                            ?>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="6%"></td>
                            <?php 
                            }
                            ?>
                        </tr>
                        <!--#in nextFormation -->
                        <!--#if bred -->
                        <tr bgcolor="#D4F8F8">
                        <!--#else bred -->
                        <tr>
                        <!--#endif bred -->
                            <td nowrap="nowrap" valign="middle">{ formation[departement_name] }</td>
                            <td nowrap="nowrap" valign="middle">{ formation[level_name] }</td>
                            <td nowrap="nowrap" valign="middle"><a href="{ babAddonUrl }user&idx=formation&do=showFormation&fid={ formation[formation_id] }">{ formation[formation_name] }</a></td>
                            <td nowrap="nowrap" valign="middle">{ coordinator }</td>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td><a href="{ babAddonUrl }user&idx=formation&do=deleteFormation&fid={ formation[formation_id] }" onclick="return(confirm('Etes-vous sur de vouloir supprimer cette entree?'));"><img src="{ babSkinPath }images/Puces/del.gif"/></a></td>
                            <?php 
                            }
                            ?>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td><a href="{ babAddonUrl }user&idx=formation&do=editFormation&fid={ formation[formation_id] }"><img src="{ babSkinPath }images/Puces/edit.gif"/></a></td>
                            <?php 
                            }
                            ?>
                        </tr>
                        <!--#endin nextFormation -->
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
<!--#end listFormation -->

<!--#begin showFormation -->
<table align="center" border="0" cellpadding="2" cellspacing="0" width="95%">
    <tbody>
        <tr>
            <td align="center" valign="middle">
                <table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
                    <tbody>
                        <!--#in nextSemester -->
                        <tr>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="10%" colspan="5">{ semester[semester_name] }</td>
                        </tr>
                        <!--#in nextTeachingUnit -->
                        <tr bgcolor="#D4F8F8">
                            <td nowrap="nowrap" valign="middle">{ teachingUnit[teachingUnit_code] }</td>
                            <td nowrap="nowrap" valign="middle" colspan="2">{ teachingUnit[teachingUnit_name] }</td>
                            <td nowrap="nowrap" valign="middle"></td>
                            <td nowrap="nowrap" valign="middle">Coefficient</td>
                        </tr>
                        <!--#in nextMaterial -->
                        <tr>
                            <td nowrap="nowrap" valign="middle"></td>
                            <td nowrap="nowrap" valign="middle" colspan="2">{ material[material_name] } ({ material[material_code] })</td>
                            <td nowrap="nowrap" valign="middle"></td>
                            <td nowrap="nowrap" valign="middle">{ material[material_coefficient] }</td>
                        </tr>
                        <!--#endin nextMaterial -->
                        <!--#endin nextTeachingUnit -->
                        <!--#endin nextSemester -->
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" valign="middle">
                <table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
                    <tbody>
                        <!--#in nextTutorialGroup -->
                        <tr>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="90%" >{ tutorialGroup[tutorialGroup_name] }</td>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="5%" ><a href="{ babAddonUrl }user&idx=formation&do=deleteTutorialGroup&idTutorialGroup={ tutorialGroup[id] }" onclick="return(confirm('Etes-vous sur de vouloir supprimer cette entree?'));"><img src="{ babSkinPath }images/Puces/del.gif"/></a></td>
                            <?php 
                            }
                            ?>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="5%" ><a href="{ babAddonUrl }user&idx=formation&do=editTutorialGroup&idTutorialGroup={ tutorialGroup[id] }"><img src="{ babSkinPath }images/Puces/edit.gif"/></a></td>
                            <?php 
                            }
                            ?>
                        </tr>
                        <!--#in nextWorkPraticeGroup -->
                        <tr bgcolor="#D4F8F8">
                            <td nowrap="nowrap" valign="middle">{ workPraticeGroup[workPraticeGroup_name] }</td>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td><a href="{ babAddonUrl }user&idx=formation&do=deleteWorkPraticeGroup&idWorkPraticeGroup={ workPraticeGroup[id] }" onclick="return(confirm('Etes-vous sûr de vouloir supprimer cette entree?'));"><img src="{ babSkinPath }images/Puces/del.gif"/></a></td>
                            <?php 
                            }
                            ?>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1001)) {
                            ?>
                            <td><a href="{ babAddonUrl }user&idx=formation&do=editWorkPraticeGroup&idWorkPraticeGroup={ workPraticeGroup[id] }"><img src="{ babSkinPath }images/Puces/edit.gif"/></a></td>
                            <?php 
                            }
                            ?>
                        </tr>
                        <!--#endin nextWorkPraticeGroup -->
                        <!--#endin nextTutorialGroup -->
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
<!--#end showFormation -->
